package com.hx.service;

import com.hx.entity.Test;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author qizhu
 * @since 2022-06-24
 */
public interface TestService extends IService<Test> {
    List<Map<String,String>> getAllData(String tableName);
    //List<Map<String,String>> getAllData(String tableName,Integer page,Integer limit);

    List getAssociatedQueryDataLeft(String tableNameOne, String tableNameTwo, String fieldOne, String fieldTwo);

    String[] getAllTableName();

    String[] getAllTableFiled(String tableName);


    void deleteByTableNames(String tableName);

    void removeDataBytableName(String tableName);

    List getAssociatedQueryDataRight(String tableNameOne, String tableNameTwo, String fieldOne, String fieldTwo);

    List getAssociatedQueryData(String tableNameOne, String tableNameTwo, String fieldOne, String fieldTwo);

    List getTableData(String datasourceNmae);

    Test getAllTest(Integer id);
}
